package com.genius.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.genius.user.bean.dto.UserDTO;
import com.genius.user.bean.login.LoginForm;
import com.genius.user.bean.login.PhoneForm;
import com.genius.user.bean.login.RegisterForm;
import com.genius.user.bean.User;
import com.genius.util.Common.Result;

public interface UserService extends IService<User>{

    Result userRegister(RegisterForm registerForm);

    Result sendCode(String phone);

    Result login(LoginForm loginForm);

    Result phoneLogin(PhoneForm loginForm);

    UserDTO getUserInfo(String token);
}
